#!/bin/bash
cd /srv/gitbook
TMPFILE=/tmp/started
if [ -f ${TMPFILE} ]; then
    echo " " && echo "==== latest starting server ====" && /usr/local/bin/gitbook serve
else
    /usr/local/bin/gitbook install && touch ${TMPFILE} && echo " " && echo "==== starting server ====" && /usr/local/bin/gitbook serve
fi

